package com.dudu.service.impl;

import org.apache.log4j.Logger;

import com.dudu.bean.MeetInfoBean;
import com.dudu.service.IConferenceManageInfoService;
import com.dudu.service.IMeetInfoService;

import core.CoreDao;
import core.CoreDaoInvoke;

public class ConferenceManageInfoServiceImpl implements IConferenceManageInfoService {
    // 用于查询数据用
    private CoreDao coreDao = CoreDaoInvoke.getInstance();
    private static final Logger log = Logger.getLogger(ConferenceManageInfoServiceImpl.class.getSimpleName());

    /**
     * 发起会议信息
     * 
     * @param meetInfoBean
     *            会议信息实体类
     * @return
     */
    public boolean manageMeetInfo(MeetInfoBean meetInfoBean) {
	boolean isTrue = false;
	try {
	    if (meetInfoBean != null) {
		// 存储相应信息
		IMeetInfoService meetImsService = new MeetInfoServiceImpl();
		try {
		    meetImsService.insert(coreDao, meetInfoBean);
		} catch (Throwable e) {
		    log.info("记录会议信息失败！" + e);
		    e.printStackTrace();
		}
		isTrue = true;
	    }
	} catch (Exception e) {
	    log.info("记录会议信息失败！" + e);
	    isTrue = false;
	}
	return isTrue;
    }

    

}
